package cn.hallele.mc.sdk.portalcenter.api;

import cn.hallele.infrastructure.metadata.io.Page;
import cn.hallele.infrastructure.metadata.io.Response;
import cn.hallele.mc.sdk.portalcenter.dto.DataDictTypeDTO;
import cn.hallele.mc.sdk.portalcenter.dto.DataDictTypeQueryDTO;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.validation.Valid;
import org.springdoc.core.annotations.ParameterObject;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * 数据字典管理
 *
 * @author anle5
 * @since 2025/3/9 15:32
 */
@Tag(name = "数据字典管理")
public interface DataDictApi {
    /**
     * 获取 数据字典列表
     *
     * @param condition 查询条件
     * @return List
     */
    @Operation(summary = "数据字典列表")
    @GetMapping("/pageDataDictTypes")
    Response<Page<DataDictTypeDTO>> pageDataDictTypes(@Valid @ParameterObject @SpringQueryMap DataDictTypeQueryDTO condition);
}
